<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Highlight Error Fields</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table border="0" width = "80%" align="center">
		<tr>
			<td><jsp:include page="header.jsp" /></td>
		</tr>
		<tr>
			<td>
				<b><bean:message key="createAccount.label.createAccount" /></b><br><br>
				<div style="color: red">
					<html:errors />
				</div> <html:form action="/createAccountAction">
					<table>
						<tr>
							<td><bean:message key="createAccount.label.username" /></td>
							<td><html:text name="createAccountForm" property="username" />*</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.password" /></td>
							<td><html:password name="createAccountForm" property="password" />*</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.confirmPassword" /></td>
							<td><html:password name="createAccountForm"	property="passwordConfirmation" />*</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.emailAddress" /></td>
							<td><html:text name="createAccountForm"	property="emailAddress" />*</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.confirmEmailAddress" /></td>
							<td><html:text name="createAccountForm"	property="emailAddressConfirmation" />*</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.firstName" /></td>
							<td><html:text name="createAccountForm" property="firstName" />
							</td>
						</tr>
						<tr>
							<td><bean:message key="createAccount.label.lastName" /></td>
							<td><html:text name="createAccountForm" property="lastName" />
							</td>
						</tr>
						<tr>
							<td></td>
							<td><html:submit value="Submit" /> <html:reset /></td>
							<td></td>
						</tr>
						<tr>
							<td></td>
							<td>* required fields</td>
							<td></td>
						</tr>
					</table>
				</html:form>
			</td>
		</tr>
		<tr>
			<td>				
				<jsp:include page="footer.jsp" />	
			</td>
		</tr>
	</table>
</body>
</html>